package cn.pid21.client.model.datapid;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Relation Description
 *
 * @author yaol
 * @version datapid-md-service 1.0.0.RELEASE
 * <b>Creation Time:</b> 2021/3/31 10:09
 */
@Data
public class Relation {

    /**
     * 标识符值
     */
    @NotBlank(message = "关联标识符值 不能为空")
    @JacksonXmlProperty(localName = "identifier_value")
    private String identifierValue;

    /**
     * 标识符类型
     */
    @JacksonXmlProperty(localName = "identifier_type")
    private String identifierType;

    /**
     * 关联类型
     */
    @NotBlank(message = "关联类型 不能为空")
    @JacksonXmlProperty(localName = "relation_type")
    private String relationType;

}
